<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/


Route::get('openai/client','OpenaiController@client')->name('openapi.client');
Route::get('openai/list','OpenaiController@list')->name('openapi.list');
Route::get('openai/image_create','OpenaiController@imageCreate')->name('openapi.image.create');
Route::get('openai/image_update','OpenaiController@imageUpdate')->name('openapi.image.update');
Route::get('openai/image_variation','OpenaiController@imageVariation')->name('openapi.image.variation');
Route::get('/upload-form','UploadController@index')->name('upload.index');
Route::post('/upload','UploadController@upload')->name('upload.deal');

